package easycloud.ecs.provider.amazon.model;

import java.io.InputStream;

import com.amazonaws.services.s3.model.S3Object;

import easycloud.ecs.api.model.IStorageObject;

public class AmazonStorageObject implements IStorageObject {

	private S3Object object;

	public AmazonStorageObject(S3Object s3Object) {
		object = s3Object;
	}

	@Override
	public String getETag() {
		return object.getObjectMetadata().getETag();
	}

	@Override
	public String getKey() {
		return object.getKey();
	}

	@Override
	public InputStream getObjectContent() {
		return object.getObjectContent();
	}
}
